package com.wx.entity;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

public class Greeting {

    @Min(value = 1,message = "数量: 必须大于0")
    private long id;
    @NotEmpty(message = "内容不能为空！")
    @Size(max = 5,message = "备注: 长度不能超过5个字符")
    private String content;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
